﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace problema3
{
    class ConnectionQuery : Query   //bridge pattern -> clasa concreta ce descrie functiile
    {
        private String databasename;
        private string User;
        private string Password;
        public void setDabaseName(string db)
        {
            databasename = db;
        }
        public String getDabaseName()
        {
            return databasename;
        }
        public string getUserName()
        {
            return User;
        }
        public void setUserName(string un)
        {
            User = un;
        }
        public string getPassword()
        {
            return Password;
        }
        public void setPassword(string pwd)
        {
            Password = pwd;
        }
        public override string ToString()
        {
            return "connect to database="+databasename+" with username="+User+" and password="+Password;
        }
    }
}
